DOCFILES := portada.tex \
            resumen.tex \
	    introduccion.tex \
	    objetivos.tex \
	    patrones.tex \
            integracion.tex \
	    zombiemanager.tex \
	    costes.tex \
	    manual.tex \
	    conclusiones.tex

.PHONY: all img memoria.pdf

all:  img memoria.pdf

img:
	python2.6 images.py

memoria.pdf: memoria.tex $(DOCFILES)
	pdflatex -d $<
	pdflatex -d $<

clean:
	$(RM) memoria.pdf *.aux *.log *.out *.eps *.toc *.lof *.lop img/*-generated.pdf *~
